package Week3.J0430;

import java.util.Scanner;

public class 乒乓球筐_xv {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        while (scanner.hasNext()){

            char[] s1 = scanner.next().toCharArray();
            char[] s2 = scanner.next().toCharArray();
            int[] hash = new int[26];
            boolean ret = true;

            for (int i = 0; i < s1.length; i++) {
                hash[s1[i] - 'A']++;
            }

            for (int i = 0; i < s2.length; i++) {
                hash[s2[i] - 'A']--;
                if (hash[s2[i] - 'A'] < 0) {
                    ret = false;
                    break;
                }
            }

            System.out.println(ret ? "Yes" : "No");
        }
    }
}
